#include <iostream>
#include "OpenGL.h"
#include "NormalEnvMapState.h"

State* state = 0;

void Draw()
{
  state->Draw();

  glutSwapBuffers();
  glutPostRedisplay();
}

int main(int argc, char** argv)
{
  glutInit(&argc, argv);
  glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);
  glutInitWindowSize(300, 300);
  glutCreateWindow("Hello");
  glutDisplayFunc(Draw);

  glEnable(GL_LIGHTING);
  glEnable(GL_LIGHT0);
  glEnable(GL_DEPTH_TEST);
  glEnable(GL_COLOR_MATERIAL);

  state = new NormalEnvMapState;

  glutMainLoop();
}


